package com.example.filemnager;

import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import fragment.FileManagerFileList;

public class MainActivity extends AppCompatActivity {

    private FileManagerFileList mFileList;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mFileList = new FileManagerFileList();
        showFragment(mFileList);
    }

    public void showFragment(Fragment fragment){
        FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
        fragmentTransaction.replace(R.id.contaner,fragment, "tag");
        fragmentTransaction.commit();
    }
}
